package com.liuche.book.auth.model.vo.user.req;

import com.liuche.framework.common.validator.PhoneNumber;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
public class UserLoginReqVO {
    /*手机号*/
    @NotBlank(message = "【手机号不能为空】")
    @PhoneNumber
    private String phone;

    /*登录验证码*/
    private String code;

    /*密码*/
    private String password;

    /*登录类型：1 手机号验证码登录；2 账号密码登录*/
    @NotBlank(message = "【登录类型不能为空】")
    private Integer type;
}
